package com.xuecheng.learning.service;

import com.xuecheng.base.model.PageResult;
import com.xuecheng.learning.model.dto.MyCourseTableParams;
import com.xuecheng.learning.model.dto.XcChooseCourseDto;
import com.xuecheng.learning.model.dto.XcCourseTablesDto;
import com.xuecheng.learning.model.po.XcCourseTables;

/**
 * @author shiminghui
 * @date 2024/9/11 11:21
 * @description: TODO
 */
public interface MyCourseTablesService {
    /**
     * @param userId   用户id
     * @param courseId 课程id
     * @return com.xuecheng.learning.model.dto.XcChooseCourseDto
     * @description 添加选课
     * @author Mr.M
     * @date 2022/10/24 17:33
     */
    public XcChooseCourseDto addChooseCourse(String userId, Long courseId);

    XcCourseTablesDto getLeanringStatus(String userId, Long courseId);

    /**
     * 保存选课成功
     *
     * @param chooseCourseId
     * @return
     */
    public boolean saveChooseCourseSuccess(String chooseCourseId);

    /**
     * 获取我的课程表
     *
     * @param params
     * @return
     */
    PageResult<XcCourseTables> mycoursetable(MyCourseTableParams params);
}
